
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>First App · My Study Note</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="yanglonglong">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="problems.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://www.yangllong.top/" target="_blank" class="custom-link">My Blog</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Linux相关/">
            
                <a href="../Linux相关/">
            
                    
                    Linux相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Linux相关/make工具的使用.html">
            
                <a href="../Linux相关/make工具的使用.html">
            
                    
                    Make工具的使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../springboot/">
            
                <a href="../springboot/">
            
                    
                    Springboot
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../springboot/springboot一些遇到的问题.html">
            
                <a href="../springboot/springboot一些遇到的问题.html">
            
                    
                    Springboot一些遇到的问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    Vue
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../vue/vue+ssm跨域问题.html">
            
                <a href="../vue/vue+ssm跨域问题.html">
            
                    
                    Vue+Ssm跨域问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../vue/vue-cli3.html">
            
                <a href="../vue/vue-cli3.html">
            
                    
                    Vue Cli3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../vue/安装vue.html">
            
                <a href="../vue/安装vue.html">
            
                    
                    安装Vue
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../其他/">
            
                <a href="../其他/">
            
                    
                    其他
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../其他/分布式系统.html">
            
                <a href="../其他/分布式系统.html">
            
                    
                    分布式系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../其他/图解http.html">
            
                <a href="../其他/图解http.html">
            
                    
                    图解Http
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../其他/消息队列.html">
            
                <a href="../其他/消息队列.html">
            
                    
                    消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../其他/爬虫.html">
            
                <a href="../其他/爬虫.html">
            
                    
                    爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../刷题/">
            
                <a href="../刷题/">
            
                    
                    刷题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../刷题/NOJ.html">
            
                <a href="../刷题/NOJ.html">
            
                    
                    NOJ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../刷题/leetcode/">
            
                <a href="../刷题/leetcode/">
            
                    
                    Leetcode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../刷题/leetcode/107简单题.html">
            
                <a href="../刷题/leetcode/107简单题.html">
            
                    
                    107简单题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="../刷题/leetcode/2两数相加.html">
            
                <a href="../刷题/leetcode/2两数相加.html">
            
                    
                    2两数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="../刷题/leetcode/3无重复子串的最大长度.html">
            
                <a href="../刷题/leetcode/3无重复子串的最大长度.html">
            
                    
                    3无重复子串的最大长度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../刷题/扇贝杯csdn.html">
            
                <a href="../刷题/扇贝杯csdn.html">
            
                    
                    扇贝杯Csdn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../刷题/排序算法.html">
            
                <a href="../刷题/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../刷题/蓝桥杯.html">
            
                <a href="../刷题/蓝桥杯.html">
            
                    
                    蓝桥杯
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../刷题/蓝桥杯热身赛.html">
            
                <a href="../刷题/蓝桥杯热身赛.html">
            
                    
                    蓝桥杯热身赛
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../刷题/计算机等级考试(C语言">
            
                <span>
            
                    
                    计算机等级考试(C语言)
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../博客/">
            
                <a href="../博客/">
            
                    
                    博客
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../博客/next主题配置.html">
            
                <a href="../博客/next主题配置.html">
            
                    
                    Next主题配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../博客/一些问题的记录.html">
            
                <a href="../博客/一些问题的记录.html">
            
                    
                    一些问题的记录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../学习java/">
            
                <a href="../学习java/">
            
                    
                    学习Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../学习java/AQS.html">
            
                <a href="../学习java/AQS.html">
            
                    
                    AQS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../学习java/HashMap的简单实现.html">
            
                <a href="../学习java/HashMap的简单实现.html">
            
                    
                    HashMap的简单实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../学习java/JavaByteCode.html">
            
                <a href="../学习java/JavaByteCode.html">
            
                    
                    JavaByteCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../学习java/Java基础.html">
            
                <a href="../学习java/Java基础.html">
            
                    
                    Java基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../学习java/Java多线程.html">
            
                <a href="../学习java/Java多线程.html">
            
                    
                    Java多线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../学习java/Java多线程并发.html">
            
                <a href="../学习java/Java多线程并发.html">
            
                    
                    Java多线程并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="../学习java/Java爬虫.html">
            
                <a href="../学习java/Java爬虫.html">
            
                    
                    Java爬虫
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="../学习java/Java集合.html">
            
                <a href="../学习java/Java集合.html">
            
                    
                    Java集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.9" data-path="../学习java/java常用类.html">
            
                <a href="../学习java/java常用类.html">
            
                    
                    Java常用类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.10" data-path="../学习java/jvm.html">
            
                <a href="../学习java/jvm.html">
            
                    
                    Jvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.11" data-path="../学习java/noifelse.html">
            
                <a href="../学习java/noifelse.html">
            
                    
                    Noifelse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.12" data-path="../学习java/socket.html">
            
                <a href="../学习java/socket.html">
            
                    
                    Socket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.13" data-path="../学习java/一些Java方法.html">
            
                <a href="../学习java/一些Java方法.html">
            
                    
                    一些Java方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.14" data-path="../学习java/一些其他人写的博客.html">
            
                <a href="../学习java/一些其他人写的博客.html">
            
                    
                    一些其他人写的博客
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.15" data-path="../学习java/硬核空间.html">
            
                <a href="../学习java/硬核空间.html">
            
                    
                    硬核空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.16" data-path="../学习java/遇到的问题.html">
            
                <a href="../学习java/遇到的问题.html">
            
                    
                    遇到的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.17" data-path="../学习java/阻塞队列.html">
            
                <a href="../学习java/阻塞队列.html">
            
                    
                    阻塞队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="./">
            
                <a href="./">
            
                    
                    安卓开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.9.1" data-path="First App.html">
            
                <a href="First App.html">
            
                    
                    First App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="problems.html">
            
                <a href="problems.html">
            
                    
                    Problems
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../工具/">
            
                <a href="../工具/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../工具/IDEA.html">
            
                <a href="../工具/IDEA.html">
            
                    
                    IDEA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../工具/docker.html">
            
                <a href="../工具/docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../工具/github.html">
            
                <a href="../工具/github.html">
            
                    
                    Github
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../数据库/">
            
                <a href="../数据库/">
            
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../数据库/MVCC.html">
            
                <a href="../数据库/MVCC.html">
            
                    
                    MVCC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../数据库/MySQL.html">
            
                <a href="../数据库/MySQL.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../数据库/Redis.html">
            
                <a href="../数据库/Redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../数据结构知识/">
            
                <a href="../数据结构知识/">
            
                    
                    数据结构知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../数据结构知识/大话数据结构笔记1.html">
            
                <a href="../数据结构知识/大话数据结构笔记1.html">
            
                    
                    大话数据结构笔记1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../数据结构知识/大话数据结构笔记2.html">
            
                <a href="../数据结构知识/大话数据结构笔记2.html">
            
                    
                    大话数据结构笔记2
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../面试笔试/">
            
                <a href="../面试笔试/">
            
                    
                    面试笔试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../面试笔试/字节跳动5月11日笔试.html">
            
                <a href="../面试笔试/字节跳动5月11日笔试.html">
            
                    
                    字节跳动5月11日笔试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../面试笔试/阿里3月23日笔试.html">
            
                <a href="../面试笔试/阿里3月23日笔试.html">
            
                    
                    阿里3月23日笔试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../面试笔试/面试突击.html">
            
                <a href="../面试笔试/面试突击.html">
            
                    
                    面试突击
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >First App</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;Android app</p>
<h3 id="&#x4E3B;&#x8981;&#x9879;&#x76EE;&#x7ED3;&#x6784;">&#x4E3B;&#x8981;&#x9879;&#x76EE;&#x7ED3;&#x6784;</h3>
<p>&#x6700;&#x91CD;&#x8981;&#x7684;&#x6587;&#x4EF6;</p>
<p>&#x9996;&#x5148;&#xFF0C;&#x8BF7;&#x786E;&#x4FDD;&#x5DF2;&#x6253;&#x5F00; <strong>Project</strong> &#x7A97;&#x53E3;&#xFF08;&#x4F9D;&#x6B21;&#x9009;&#x62E9; <strong>View &gt; Tool Windows &gt; Project</strong>&#xFF09;&#xFF0C;&#x5E76;&#x4ECE;&#x8BE5;&#x7A97;&#x53E3;&#x9876;&#x90E8;&#x7684;&#x4E0B;&#x62C9;&#x5217;&#x8868;&#x4E2D;&#x9009;&#x62E9; <strong>Android</strong> &#x89C6;&#x56FE;&#x3002;&#x968F;&#x540E;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x4EE5;&#x4E0B;&#x6587;&#x4EF6;&#xFF1A;</p>
<ul>
<li><p><strong>app &gt; java &gt; com.example.myfirstapp &gt; MainActivity</strong></p>
<p>&#x8FD9;&#x662F;&#x4E3B; Activity&#xFF08;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x7684;&#x5165;&#x53E3;&#x70B9;&#xFF09;&#x3002;&#x5F53;&#x60A8;&#x6784;&#x5EFA;&#x548C;&#x8FD0;&#x884C;&#x5E94;&#x7528;&#x65F6;&#xFF0C;&#x7CFB;&#x7EDF;&#x4F1A;&#x542F;&#x52A8;&#x6B64; <code>Activity</code> &#x7684;&#x5B9E;&#x4F8B;&#x5E76;&#x52A0;&#x8F7D;&#x5176;&#x5E03;&#x5C40;&#x3002;</p>
</li>
<li><p><strong>app &gt; res &gt; layout &gt; activity_main.xml</strong></p>
<p>&#x6B64; XML &#x6587;&#x4EF6;&#x5B9A;&#x4E49; Activity &#x754C;&#x9762;&#x7684;&#x5E03;&#x5C40;&#x3002;&#x5B83;&#x5305;&#x542B;&#x5E26;&#x6709;&#x6587;&#x672C;&#x201C;Hello world!&#x201D;&#x7684; <code>TextView</code> &#x5143;&#x7D20;&#x3002;</p>
</li>
<li><p><strong>app &gt; manifests &gt; AndroidManifest.xml</strong></p>
<p><a href="https://developer.android.google.cn/guide/topics/manifest/manifest-intro.html" target="_blank">&#x6E05;&#x5355;&#x6587;&#x4EF6;</a>&#x63CF;&#x8FF0;&#x5E94;&#x7528;&#x7684;&#x57FA;&#x672C;&#x7279;&#x6027;&#x5E76;&#x5B9A;&#x4E49;&#x5176;&#x6BCF;&#x4E2A;&#x7EC4;&#x4EF6;&#x3002;</p>
</li>
<li><p><strong>Gradle Scripts &gt; build.gradle</strong></p>
<p>&#x60A8;&#x4F1A;&#x770B;&#x5230;&#x4E24;&#x4E2A;&#x5177;&#x6709;&#x6B64;&#x540D;&#x79F0;&#x7684;&#x6587;&#x4EF6;&#xFF1A;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x9879;&#x76EE;&#xFF08;&#x201C;&#x9879;&#x76EE;&#xFF1A;MyFirstApp&#x201D;&#xFF09;&#xFF0C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x201C;app&#x201D;&#x6A21;&#x5757;&#xFF08;&#x201C;&#x6A21;&#x5757;&#xFF1A;app&#x201D;&#xFF09;&#x3002;&#x6BCF;&#x4E2A;&#x6A21;&#x5757;&#x5747;&#x6709;&#x81EA;&#x5DF1;&#x7684; <code>build.gradle</code> &#x6587;&#x4EF6;&#xFF0C;&#x4F46;&#x6B64;&#x9879;&#x76EE;&#x5F53;&#x524D;&#x4EC5;&#x6709;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#x3002;&#x60A8;&#x5C06;&#x4E3B;&#x8981;&#x4F7F;&#x7528;&#x6A21;&#x5757;&#x7684; <code>build.gradle</code> &#x6587;&#x4EF6;&#x6765;&#x914D;&#x7F6E; Gradle &#x5DE5;&#x5177;&#x5982;&#x4F55;&#x7F16;&#x8BD1;&#x548C;&#x6784;&#x5EFA;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x3002;&#x5982;&#x9700;&#x8BE6;&#x7EC6;&#x4E86;&#x89E3;&#x6B64;&#x6587;&#x4EF6;&#xFF0C;&#x8BF7;&#x53C2;&#x9605;<a href="https://developer.android.google.cn/studio/build/index.html" target="_blank">&#x914D;&#x7F6E;&#x7F16;&#x8BD1;&#x7CFB;&#x7EDF;</a>&#x3002;</p>
</li>
</ul>
<h3 id="&#x6253;&#x5F00;&#x5E03;&#x5C40;&#x7F16;&#x8F91;&#x5668;">&#x6253;&#x5F00;&#x5E03;&#x5C40;&#x7F16;&#x8F91;&#x5668;</h3>
<p>&#x9996;&#x5148;&#xFF0C;&#x8BF7;&#x6309;&#x7167;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#x8BBE;&#x7F6E;&#x60A8;&#x7684;&#x5DE5;&#x4F5C;&#x533A;&#xFF1A;</p>
<ol>
<li>&#x5728; Android Studio &#x7684;&#x201C;Project&#x201D;&#x7A97;&#x53E3;&#x4E2D;&#xFF0C;&#x6253;&#x5F00; <strong>app &gt; res &gt; layout &gt; activity_main.xml</strong>&#x3002;</li>
<li>&#x8981;&#x7ED9;&#x5E03;&#x5C40;&#x7F16;&#x8F91;&#x5668;&#x7559;&#x51FA;&#x66F4;&#x591A;&#x7A7A;&#x95F4;&#xFF0C;&#x8BF7;&#x9690;&#x85CF; <strong>Project</strong> &#x7A97;&#x53E3;&#xFF0C;&#x65B9;&#x6CD5;&#x662F;&#x4F9D;&#x6B21;&#x9009;&#x62E9; <strong>View &gt; Tool Windows &gt; Project</strong>&#xFF08;&#x6216;&#x70B9;&#x51FB; Android Studio &#x5DE6;&#x4FA7;&#x7684; <strong>Project</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/window-project.png" alt="img">&#xFF09;&#x3002;</li>
<li>&#x5982;&#x679C;&#x60A8;&#x7684;&#x7F16;&#x8F91;&#x5668;&#x663E;&#x793A; XML &#x6E90;&#x4EE3;&#x7801;&#xFF0C;&#x8BF7;&#x70B9;&#x51FB;&#x7A97;&#x53E3;&#x5E95;&#x90E8;&#x7684; <strong>Design</strong> &#x6807;&#x7B7E;&#x3002;</li>
<li>&#x70B9;&#x51FB; <strong>Select Design Surface</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/layout-editor-design.png" alt="img">&#xFF0C;&#x7136;&#x540E;&#x9009;&#x62E9; <strong>Blueprint</strong>&#x3002;</li>
<li>&#x70B9;&#x51FB;&#x5E03;&#x5C40;&#x7F16;&#x8F91;&#x5668;&#x5DE5;&#x5177;&#x680F;&#x4E2D;&#x7684; <strong>Show</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/layout-editor-show-constraints.png" alt="img">&#xFF0C;&#x5E76;&#x786E;&#x4FDD;&#x9009;&#x4E2D; <strong>Show Constraints</strong>&#x3002;</li>
<li>&#x786E;&#x4FDD; Autoconnect &#x5904;&#x4E8E;&#x5173;&#x95ED;&#x72B6;&#x6001;&#x3002;&#x5DE5;&#x5177;&#x680F;&#x4E2D;&#x7684;&#x63D0;&#x793A;&#x5E94;&#x4E3A; <strong>Turn On Autoconnect</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/layout-editor-autoconnect-on.png" alt="img">&#xFF08;&#x56E0;&#x4E3A;&#x5B83;&#x73B0;&#x5728;&#x5904;&#x4E8E;&#x5173;&#x95ED;&#x72B6;&#x6001;&#xFF09;&#x3002;</li>
<li>&#x70B9;&#x51FB;&#x5DE5;&#x5177;&#x680F;&#x4E2D;&#x7684; <strong>Default Margins</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/layout-editor-margin.png" alt="img">&#xFF0C;&#x7136;&#x540E;&#x9009;&#x62E9; <strong>16</strong>&#xFF08;&#x60A8;&#x7A0D;&#x540E;&#x4ECD;&#x7136;&#x53EF;&#x4EE5;&#x8C03;&#x6574;&#x6BCF;&#x4E2A;&#x89C6;&#x56FE;&#x7684;&#x5916;&#x8FB9;&#x8DDD;&#xFF09;&#x3002;</li>
<li>&#x70B9;&#x51FB;&#x5DE5;&#x5177;&#x680F;&#x4E2D;&#x7684; <strong>Device for Preview</strong> &#x56FE;&#x6807; <img src="https://developer.android.google.cn/studio/images/buttons/layout-editor-device.png" alt="img">&#xFF0C;&#x7136;&#x540E;&#x9009;&#x62E9; <strong>5.5, 1440 &#xD7; 2560, 560dpi (Pixel XL)</strong>&#x3002;</li>
</ol>
<p>&#x60A8;&#x7684;&#x7F16;&#x8F91;&#x5668;&#x73B0;&#x5728;&#x5E94;&#x5982;&#x56FE; 3 &#x6240;&#x793A;&#x3002;</p>
<p><img src="https://developer.android.google.cn/training/basics/firstapp/images/layout-editor_2x.png" alt="img"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 安卓开发">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="problems.html" class="navigation navigation-next " aria-label="Next page: Problems">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"First App","level":"1.9.1","depth":2,"next":{"title":"Problems","level":"1.9.2","depth":2,"path":"安卓开发/problems.md","ref":"安卓开发/problems.md","articles":[]},"previous":{"title":"安卓开发","level":"1.9","depth":1,"path":"安卓开发/README.md","ref":"安卓开发/README.md","articles":[{"title":"First App","level":"1.9.1","depth":2,"path":"安卓开发/First App.md","ref":"安卓开发/First App.md","articles":[]},{"title":"Problems","level":"1.9.2","depth":2,"path":"安卓开发/problems.md","ref":"安卓开发/problems.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-search","-lunr","-sharing","-anchor-navigation-ex","todo","code","-katex","github","-summary","search-pro","chapter-fold","theme-comscore","toggle-chapters","flexible-alerts"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"github":{"url":"https://github.com/BluePrintYang"},"todo":{},"search-pro":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"showLevel":false,"showGoTop":true,"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"theme-comscore":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"callout","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"yanglonglong","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"My Study Note","language":"zh-hans","links":{"sidebar":{"My Blog":"https://www.yangllong.top/"}},"gitbook":"*"},"file":{"path":"安卓开发/First App.md","mtime":"2020-06-29T16:04:36.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-01-14T07:15:50.272Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

